package com.zs.mp.controller;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zs.mp.model.ResponseResult;
import com.zs.mp.model.vo.ValidVO;

import lombok.extern.slf4j.Slf4j;

@RestController
@Slf4j
@RequestMapping("/valid")
public class ValidationController {
	
	@PostMapping("/test0")
	public ResponseResult<?> test0(@Validated @RequestBody ValidVO validVO) {
		log.info("{}",validVO);
		System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
		return ResponseResult.failure("11111111");
	}
	
}
